Wait for api response if timout return null